removeSerialListener

abstract fun removeSerialListener(@NonNull listener: SerialListener)

Unregisters a previously added SerialListener.

After this call, the specified listener will no longer receive data from serial devices. If the given listener was not previously registered, this method has no effect. Use the same listener instance that was passed to addSerialListener.

Parameters

listener

The non-null SerialListener instance to unregister.

See also

Throws

if listener is null.